package com.zjsd.sqeybusiness.service;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.zjsd.sqeybusiness.domain.*;

import java.util.List;

public interface IShareInfoService {

    int insertShareInfo(ShareInfo shareInfo);

    List<ShareInfo> selectShareInfoList(ShareInfo shareInfo);

    int insertShareStoreInfo(ShareStore shareStore);

    int updateShareReadNum(ShareInfo shareInfo);

    int insertShareLy(ShareLy shareLy);

    List<ShareLy> selectShareLyList(ShareInfo shareInfo);

    List<ShareInfo> selectMySharedInfoList(ShareInfo shareInfo);

    List<ShareInfo> selectMyStoredShareInfoList(ShareInfo shareInfo);

    List<ShareInfo> selectHasMyLyShareInfoList(ShareInfo shareInfo);

    AgencyInfo selectAgencyInfo(Long agencyid);

    /**
     * 查询圈子信息
     *
     * @param shareid 圈子信息ID
     * @return 圈子信息
     */
    public ShareInfo selectShareInfoById(Long shareid);


    /**
     * 修改圈子信息
     *
     * @param shareInfo 圈子信息
     * @return 结果
     */
    public int updateShareInfo(ShareInfo shareInfo);

    /**
     * 批量删除圈子信息
     *
     * @param shareids 需要删除的圈子信息ID
     * @return 结果
     */
    public int deleteShareInfoByIds(Long[] shareids);

    /**
     * 删除圈子信息信息
     *
     * @param shareid 圈子信息ID
     * @return 结果
     */
    public int deleteShareInfoById(Long shareid);

    SysDept getDeptInfoByUserId(Long userId);

    CompanyInfo getCompanyInfoByDeptId(Long deptId);
}
